package com.cbgolf.oa.entity;

import java.io.Serializable;
import java.util.List;

/**
 * @author lq
 * @date 2018/5/10
 */

public class PlayerBean implements Serializable {


  public String fairwayName;
  public int personNum;
  public List<Player> listPerson;
  public List<List<LatLon>> listAllPerson;

  public class Player implements Serializable {

    public String name;
    public boolean isCaddie;
    public boolean isWorker;
    public boolean isPlayer;
    public String headPic;
    public String userId;
    public String caddieLevel;
    public String courseId;
    public String phone;
    public String customerCount;
//    public List<String> customers;
  }

  public Player getPlayer() {
    return new Player();
  }

  public static class Builder implements Serializable {

    PlayerBean bean;

    public Builder() {
      bean = new PlayerBean();
    }

    public Builder setIsNoData(boolean isNoData) {
      bean.isNoData = isNoData;
      return this;
    }

    public Builder setFairwayName(String name) {
      bean.fairwayName = name;
      return this;
    }

    public Builder setPersonNum(int num) {
      bean.personNum = num;
      return this;
    }

    public Builder setListPerson(List<Player> list) {
      bean.listPerson = list;
      return this;
    }

    public Builder setListAllPerson(List<List<LatLon>> list) {
      bean.listAllPerson = list;
      return this;
    }

    public Builder setError(String error, int code) {
      bean.errorMsg = error;
      bean.errorCode = code;
      return this;
    }

    public PlayerBean build() {
      return bean;
    }
  }

  public boolean isNoData;
  public String errorMsg;
  public int errorCode;

}
